package org.jason.mapmaker.server.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Simple Factory class to get the EntityManagerFactory as a Singleton, etc
 * 
 * @author TSgt Jason Ferguson
 */
public final class EntityManagerUtil {

    private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory("transactions-optional");

    private EntityManagerUtil() {

    }

    public static EntityManagerFactory getEntityManagerFactory() {
        return emfInstance;
    }
}
